

<style>
    .form-group .col-sm-2{
        min-width: 140px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

        <div class="col-md-12 col-xs-12 form-group">
        <div class="table-responsive">
            <table id="tablepay" class="table table-striped table-bordered table-hover table-nowrap">
                <thead>
                <th>{:__('开票主体')}</th>
                <th>{:__('发票抬头')}</th>
                <th>{:__('抬头类型')}</th>
                <th>{:__('发票类型')}</th>
                <th>{:__('开票金额')}</th>
                <th>{:__('附加信息')}</th>
                <th>{:__('邮寄信息')}</th>

                </thead>
                <tbody>

                <tr>
                    <td> {$row.invoice_body}</td>
                    <td>
                        {$row.invoice_name}
                    </td>
                    <td>
                        {php}$invoice_issue=$row->getInvoiceIssueList();{/php}
                        {:isset($invoice_issue[$row['invoice_issue']])?$invoice_issue[$row['invoice_issue']]:''}
                    </td>
                    <td>
                        {$row['invoice_type']==1?__('增值税普票'):__('增值税专票')}
                    </td>
                    <td>
                        {$row.money}
                    </td>
                    <td>
                        {:__('统一社会信用代码')}:{$row.register_no}<br/>
                        {:__('开户行名称')}:{$row.bank_name}<br/>
                        {:__('开户账号')}:{$row.bank_no}<br/>
                    </td>
                    <td>
                        {:__('收件人')}:{$row.user_name}<br/>
                        {:__('手机')}:{$row.user_phone}<br/>
                        {:__('邮寄地址')}:{$row.user_address}<br/>
                    </td>

                </tr>
                </tbody>
            </table>
        </div>



        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('开票金额')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-money"  type="number" data-rule="required" class="form-control" name="row[money]" value="{$row.money}"/>
                <span class="help-block hepl-money">合同金额：{$row.contract.money},已收款：{$row.contract.return_money},已开票：{$row.contract.invoice_money}</span>

            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-tax_rate" class="control-label col-xs-12 col-sm-2">{:__('开票税率')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-tax_rate"   type="number" data-rule="required" class="form-control" name="row[tax_rate]" value="{$row.tax_rate}"/>
                <span class="help-block">不用输入%号</span>
            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('开票内容')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-content"   type="text" class="form-control" name="row[content]" value="{$row.content}"/>
            </div>
        </div>

        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('接收邮箱')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-email"  type="text" class="form-control" name="row[email]" value="{$row.email}"/>
                <span class="help-block">可空，输入客户邮箱完成开票时，会把附件自动发送给客户。</span>
            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('发票附件')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-image" class="form-control" size="50" name="row[files]" type="text" value="" placeholder="可以为空">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="*" data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('上传')}</button></span>

                    </div>
                    <span class="msg-box n-right" for="c-image"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-image"></ul>
            </div>
        </div>
        <div class="col-md-6 col-xs-12 form-group">
            <label for="c-remarks" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-remarks" class="form-control" name="row[remarks]">{$row.remarks}</textarea>
            </div>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>







